import os.path

DB_DIR = 'H:\python\daily_code_normal\第四周周测\mycode\db'
user_file = fr'{DB_DIR}\a.json'
print(user_file)

res = os.path.join(DB_DIR, 'a.json')
print(res)

filename = 'test.py'
print(os.path.abspath(filename))



